Repository navigation
Conversation
cd1429e to
1fa8912
Compare
1fa8912 to
cf09ca2
Compare
cf09ca2 to
0f0cbe1
Compare
|
@hja-oss I have unified the dual stack socket behavior across different dialects, please check if it is a better solution |
|
Hey, my original PR was intentionally limited to Darwin and aimed to preserve IPv4 matching. But, separating socket-family selection from address display looks like a cleaner way to align the dialects with the documented behavior. I am all in with your changes going broader and changing how existing IPv4 filters select dual-stack connections on other dialects. This is your call, if you are ok doing it in a single PR, I am also ok. Just a quick note from myside, maybe it would be good to clarify the intended behavior of an unqualified mapped-address filter such as -
|
|
@jiegec I have done some changes but I’ve kept your cross-dialect approach and updated the parser so |
Keep IPv4-mapped sockets IPv6 for selection on Darwin, Linux, FreeBSD, NetBSD, and OpenBSD, while preserving dotted IPv4 address display. These sockets match IPv6 filters, not IPv4 filters, consistent with the documented socket-family rule.
Treat bracketed IPv4-mapped addresses as IPv6 even without an explicit
6qualifier. Normalize Darwin’s IPv4-compatible representation before matching.Extend regression coverage for TCP and connected UDP sockets, qualified and unqualified mapped-address filters, numeric display, and exit status. Clarify the selection rules in the man pages.